package book;

public class bookList {
    protected Book[] book = new Book[10];
    protected int usesize;//实际黍的个数；

    public bookList() {
        this.book[0] = new Book("三体","刘慈欣",30,"小说");
        this.book[1] = new Book("吹响吧！上低音号","武田绫乃",200,"轻小说");
        this.book[2] = new Book("野草","鲁迅",25,"散文");

        this.usesize = 3;
    }

    public Book getBook(int pos) {
        return book[pos];
    }

    public void setBook(int pos ,Book book) {
        this.book[pos] = book;
    }

    public int getUsesize() {
        return usesize;
    }

    public void setUsesize(int usesize) {
        this.usesize = usesize;
    }

    public Book[] getBooks() {
        return book;
    }
}
